import requests
datas= \
    {
        'tempTokenKey': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLnhormr4UiLCJhdWQiOiI5RTEwNTlDOTMzNUQ0QzdDQjhEQzc0MDBEMDNBRUNGQiIsInNlcnZlciI6Imh0dHBzOi8vZ3ptaC56d2Z3Lmd1aXpob3UuZ292LmNuL2xvZ2luLyIsInJvbGUiOiJST0xFX0FSRUEsUk9MRV9XSU5ET1ciLCJpc0luaXRpYWxQYXNzd29yZCI6IjAiLCJyZWdpb25OYW1lIjoi6LS15bee55yBIiwiaW5kdXN0cnkiOm51bGwsImFwcENvZGUiOiJkZ292LXBvcnRhbCIsIm9yZ2FuTmFtZSI6IuaWsOi_m-S6uuWRmCIsInJlZ2lvbkNvZGUiOiI1MjAwMDAiLCJpbmR1c3RyeUxpc3QiOm51bGwsIm9yZ2FuQ29kZSI6IjUyMDAwMDIwMTcwMjE2MTAwNTMwMDAwNTA3IiwiZXhwaXJhdGlvblRpbWUiOjQ2LCJncmFkZSI6IjIiLCJzdGF0dXMiOiIxIiwiaXNzIjoiaW5zcHVyIiwianRpIjoiMzE4NWI5YjctMjJmYi00OTQ3LWI4ZDUtMTJlMThhMjdlOWYxIiwiaWF0IjoxNzU4MjQ0MjQzLCJleHAiOjE3NTgyNzQyNDN9.Vk5D0qkTIyyvecRq23UZ2kExP3dvzGjcRaUvluEbUTeJmUejlHA2ZtiSRg1DXYVtjIq8X-BtNgoyrAd67UAuYw',
        'userInfoKey': '%7B%22role%22%3A%20%22ROLE_AREA%2CROLE_WINDOW%22%2C%20%22isInitialPassword%22%3A%20%220%22%2C%20%22regionName%22%3A%20%22%E8%B4%B5%E5%B7%9E%E7%9C%81%22%2C%20%22appCode%22%3A%20%22dgov-portal%22%2C%20%22organName%22%3A%20%22%E6%96%B0%E8%BF%9B%E4%BA%BA%E5%91%98%22%2C%20%22regionCode%22%3A%20%22520000%22%2C%20%22phone%22%3A%20%2218198171062%22%2C%20%22organCode%22%3A%20%2252000020170216100530000507%22%2C%20%22expirationTime%22%3A%2046%2C%20%22name%22%3A%20%22%E7%86%8A%E6%AF%85%22%2C%20%22id%22%3A%20%229E1059C9335D4C7CB8DC7400D03AECFB%22%2C%20%22email%22%3A%20%22123%40qq.com%22%2C%20%22username%22%3A%20%22gys_xy%22%2C%20%22status%22%3A%20%221%22%7D',
        'pwdState': 'true', 'inspurRoleKey': 'ROLE_AREA', 'windowId': '0B7CA12E92004E0ABCA9EB88F0A792E4',
        'JSESSIONID': 'BB273AF91AE833E020C4E77AF4F7A05A'}

cookies = {
    'JSESSIONID': datas['JSESSIONID'],
    'tempTokenKey': datas['tempTokenKey'],
    'userInfoKey': datas['userInfoKey'],
    'pwdState': 'true',
    'inspurRoleKey': 'ROLE_AREA',
    'windowId': datas['windowId'],
    'James_cookie_sYQDUGqqzHtheme': 'custom',
}


headers = {
    'Accept': 'application/json, text/plain, */*',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded',
    'Origin': 'https://gzmh.zwfw.guizhou.gov.cn',
    'Referer': 'https://gzmh.zwfw.guizhou.gov.cn/zhslzy/accept/dockingcenter/itemconnection/index',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36',
    'sec-ch-ua': '"Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    # 'Cookie': 'JSESSIONID=EAD699988D116BB97C8424005112B879; tempTokenKey=eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLnhormr4UiLCJhdWQiOiI5RTEwNTlDOTMzNUQ0QzdDQjhEQzc0MDBEMDNBRUNGQiIsInNlcnZlciI6Imh0dHBzOi8vZ3ptaC56d2Z3Lmd1aXpob3UuZ292LmNuL2xvZ2luLyIsInJvbGUiOiJST0xFX0FSRUEsUk9MRV9XSU5ET1ciLCJpc0luaXRpYWxQYXNzd29yZCI6IjAiLCJyZWdpb25OYW1lIjoi6LS15bee55yBIiwiaW5kdXN0cnkiOm51bGwsImFwcENvZGUiOiJkZ292LXBvcnRhbCIsIm9yZ2FuTmFtZSI6IuaWsOi_m-S6uuWRmCIsInJlZ2lvbkNvZGUiOiI1MjAwMDAiLCJpbmR1c3RyeUxpc3QiOm51bGwsIm9yZ2FuQ29kZSI6IjUyMDAwMDIwMTcwMjE2MTAwNTMwMDAwNTA3IiwiZXhwaXJhdGlvblRpbWUiOjQ3LCJncmFkZSI6IjIiLCJzdGF0dXMiOiIxIiwiaXNzIjoiaW5zcHVyIiwiaWF0IjoxNzU4MTk2NDkzLCJleHAiOjE3NTgyMjUyOTN9.QE2KeCQDDygxo0Yx2Pecuf2X7dZRY9mc6qnYjIPiweMHe1hDb2971sXAb_taEzAl2sEOmSxFUzMnpxU2r0_bYg; userInfoKey={%22role%22:%22ROLE_AREA%2CROLE_WINDOW%22%2C%22isInitialPassword%22:%220%22%2C%22regionName%22:%22%E8%B4%B5%E5%B7%9E%E7%9C%81%22%2C%22appCode%22:%22dgov-portal%22%2C%22organName%22:%22%E6%96%B0%E8%BF%9B%E4%BA%BA%E5%91%98%22%2C%22regionCode%22:%22520000%22%2C%22phone%22:%22384d53fa06a4844cfd54260b048c33e9%22%2C%22organCode%22:%2252000020170216100530000507%22%2C%22expirationTime%22:47%2C%22name%22:%221342b48e6f8f39ea7ba36accc05b61a8%22%2C%22id%22:%229E1059C9335D4C7CB8DC7400D03AECFB%22%2C%22email%22:%223f9980534589201ab2c5f2481db36392%22%2C%22username%22:%2247d57692a252657367001b6a2ff35333%22%2C%22status%22:%221%22%2C%22isWeakPwd%22:%220%22}; pwdState=true; inspurRoleKey=ROLE_AREA; windowId=0B7CA12E92004E0ABCA9EB88F0A792E4; James_cookie_sYQDUGqqzHtheme=custom',
}

params = {
    'queryType': '',
}

data = {
    'page': '1',
    'rows': '10',
    'icode': '',
    'iname': '',
    'orgName': '',
    'orgCode': '',
    'type': '',
    'regionName': '贵州省',
    'regionCode': '520000',
    'assort': '',
    'handleModel': '',
    'gzEditFlag': '',
}

response = requests.post(
    'https://gzmh.zwfw.guizhou.gov.cn/zhslzy/accept/dockingcenter/baseitem/itemQuery',
    params=params,
    cookies=cookies,
    headers=headers,
    data=data,
)
print(response.text)